<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://shiro.apache.org/tags" prefix="shiro" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<title>Labofjet 简简单单才是美</title>
<meta name="description" content="Jet的博客">
<meta name="keywords" content="labofjet">
<meta name="HandheldFriendly" content="True">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<%@include file="/jsp/import/head.jsp"%>
<link href="resources/css/index2.css" rel="stylesheet" />
<script type="text/javascript" src="resources/js/index2.js"></script>
</head>
<body class="home-template">
	<!-- start header -->
	<c:import var="data" url="/jsp/import/header.jsp" />
	${data }
	<!-- end header -->

	<!-- start navigation -->
	<c:import var="data" url="/jsp/import/navigation.jsp" />
	${data }
	<!-- end navigation -->

	<!-- start site's main content area -->
	<section class="content-wrap">
		<div class="container">
			<div class="row">
				<main class="col-md-8 main-content"> <!-- start 文章 -->

				<article id="55" class="post">
					<header class="post-head">
						<h1 class="post-title">${artical.title }</h1>
						<section class="post-meta">
							<span class="author">作者：${artical.author.userName }</span> •
							<time class="post-date">${artical.date }</time>
						</section>
						<shiro:user>
							<a href="manage/artical/update/${artical.id}" class="">编辑</a>
							<a href="manage/artical/delete/${artical.id}" class="">删除</a>
						</shiro:user>
						<hr>
					</header>
					<section class="post-content">${artical.htmlContent }</section>
					<a class="btn btn-default" onClick="history.go(-1)">返回</a>
				</article>

				<div class="duoshuo">
					<!-- 多说评论框 start -->
					<div class="ds-thread" data-thread-key="${artical.id }" data-title="${artical.title }" data-url="<%=basePath %>artical/${artical.id}"></div>
					<!-- 多说评论框 end -->
				</div>
				<!-- end 文章 --> </main>
				<aside class="col-md-4 sidebar">
					<!-- start widget -->
					<!-- end widget -->

					<!-- start widget -->
					<c:import var="data" url="/jsp/import/search.jsp" />
					${data }
					<!-- end widget -->


					<!-- start tag cloud widget -->
					<c:import var="data" url="/category-list" />
					${data }
					<!-- end tag cloud widget -->


					<!-- start widget -->
					<c:import var="data" url="/jsp/import/login.jsp" />
					${data }
					<!-- end widget -->

					<!-- start widget -->
					<!-- end widget -->
				</aside>
			</div>
		</div>
	</section>

	<!-- start footer -->
	<c:import var="data" url="/jsp/import/footer.jsp" />
	${data }
	<!-- end footer -->
</body>
</html>